<?php
use yii\helpers\Html;

?>
<?php if ($model->errors) { ?>
    <div class="error-page">
        <div class="panel panel-danger">
            <div class="panel-heading">
                <h3 class="panel-title">请修复以下错误</h3>
            </div>
            <div class="panel-body"><?= Html::errorSummary($model, ['header' => '']) ?></div>
        </div>
    </div>
<?php } ?>